#pragma once
#include"HashTable.h"
namespace My_UnorderSet
{
	template<class K>
	class UnorderSet
	{
		struct SetofT
		{
			const K& operator()(const K&key)
			{
				return key;
			}
		};
	public:
		
		typedef typename Hash_Bucket::Hash_table<K, K, SetofT>::Iterator Iterator;


		Iterator begin()
		{
			return _Unorderset.begin();
		}

		Iterator end()
		{
			return _Unorderset.end();
		}

		bool Insert(const K&data)
		{
			return _Unorderset.Insert(data);
		}

		bool Erase(const K&data)
		{
			return _Unorderset.Erase(data);
		}

	private:
		Hash_Bucket::Hash_table<K, K, SetofT> _Unorderset;

	};
}




